//
//  AppDelegate.m
//  TXBPlatform
//
//  Created by HX on 2017/8/15.
//  Copyright © 2017年 TXB. All rights reserved.
//

#import "AppDelegate.h"
#import "XBTabBarController.h"
#import "MEMenuViewController.h"
#import "PDSlideViewController.h"
#import "XBNavigationController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

     self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

     [self.window makeKeyAndVisible];


     [self setMainController];

     return YES;

     
}

- (void)setMainController
{
     XBTabBarController *barVC = [[XBTabBarController alloc] init];
          //侧滑控制器
     PDSlideViewController *slideVC = [[PDSlideViewController alloc] init];
          //左滑控制器
     MEMenuViewController *leftMenu = [[MEMenuViewController alloc] init];

     slideVC.leftVC = leftMenu;

          //主控制器
     slideVC.homeVC = barVC;

     XBNavigationController *navc = [[XBNavigationController alloc] initWithRootViewController:slideVC];

     slideVC.navigationController.navigationBarHidden = YES;

     self.window.rootViewController = navc;
}




@end
